<?php

namespace App\Policies;

use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
use App\Models\Coupon;
class CouponPolicy
{
    use HandlesAuthorization;

    public function update(User $user,Coupon $coupon){
        //仅销售可以进行操作
        return $user->is_seller;
    }
}
